home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Code Resources / Jims CDEFs 1.50 / demo Source ƒ / dynMenu.r < prev   
Encoding:
Text File  |  1995-10-27  |  2.3 KB  |  87 lines  |  [TEXT/KAHL]

  1. //----------------------------------------------------------------------------------
  2. // File        : dynTest.r
  3. // Date        : Dec 28, 1994
  4. // Author    : Jim Stout
  5. //            :
  6. // Purpose    : rez source for dynMenu.c
  7. //----------------------------------------------------------------------------------
  8. #define SystemSevenOrLater 1
  9.  
  10. #include <Types.r> 
  11. #include "jimsCDEF.h"
  12.  
  13. // this resource will color dialog id=210 - and is needed to allow the 'cctb' to work
  14. // change wContentColor from white to see the control drawn as a "3D control".
  15.  
  16. resource 'dctb' (210, purgeable) {
  17.     {
  18. //        /* [1] */        wContentColor, 52428, 52428, 52428,        // gray background
  19.         /* [1] */        wContentColor, 65535, 65535, 65535,        // white background
  20.         /* [2] */        wFrameColor, 0, 0, 0,
  21.         /* [3] */        wTextColor, 0, 0, 0,
  22.         /* [4] */        wHiliteColor, 0, 0, 0,
  23.         /* [5] */        wTitleBarColor, 65535, 65535, 65535
  24.     }
  25. };
  26.  
  27. resource 'DLOG' (210, "Dynamic Menu Demo", purgeable) {
  28.     {44, 20, 159, 320},    movableDBoxProc,    visible,    nogoAway,    0x0,    210,    
  29.     "Dynamic Menu Demo",
  30. #if SystemSevenOrLater
  31.     centerMainScreen
  32. #endif
  33. };
  34.  
  35. resource 'DITL' (210, purgeable) {
  36.     {
  37.         /* [1] */    {85, 227, 105, 287},        Button        {    enabled,    "OK"            },
  38.         /* [2] */    {85, 154, 105, 214},        Button         {    enabled,    "Cancel"        },
  39.         /* [3] */    {20, 20, 40, 240},            Control        {    enabled,    210                },
  40.         /* [4] */    {50, 20, 66, 85},            RadioButton    {    enabled,    "Animal"        },
  41.         /* [5] */    {50, 90, 66, 175},            RadioButton    {    enabled,    "Vegetable"        },
  42.         /* [6] */    {50, 180, 66, 250},            RadioButton    {    enabled,    "Mineral"        },
  43.     }
  44. };
  45.  
  46. resource 'CNTL' (210, purgeable) {
  47.     {20, 20, 40, 240},
  48.     popupTitleRightJust,            // title justification
  49.     visible,                    
  50.     popupInsetFrame+90,                // extended variation + title width
  51.     210,                            // menuId
  52.     16*popUp+popupFixedWidth,        // procId
  53.     0,                                // refCon
  54.     "Select Item:"                    // Control Title
  55. };
  56. resource 'STR#' (210, purgeable) {
  57.     {
  58.     /* [1] */ "Aardvark";
  59.     /* [2] */ "Baboon";
  60.     /* [3] */ "Coelecanth";
  61.     /* [4] */ "Dingo";
  62.     /* [5] */ "Emu";
  63.     /* [6] */ "Fisher"
  64.     }
  65. };
  66. resource 'STR#' (211, purgeable) {
  67.     {
  68.     /* [1] */ "Artichoke";
  69.     /* [2] */ "Beet";
  70.     /* [3] */ "Cabbage";
  71.     /* [4] */ "Dasheens";
  72.     /* [5] */ "Eggplant";
  73.     /* [6] */ "Fennel"
  74.     }
  75. };
  76. resource 'STR#' (212, purgeable) {
  77.     {
  78.     /* [1] */ "Antimony";
  79.     /* [2] */ "Beryllium";
  80.     /* [3] */ "Cadmium";
  81.     /* [4] */ "Dolomite";
  82.     /* [5] */ "Emery";
  83.     /* [6] */ "Feldspar"
  84.     }
  85. };
  86.  
  87.